package com.foreknow.demo4;

public class Person {
    String name;
    int age;
    String school;

    public void eat() {
        System.out.println("eat.......");
    }

    public void study() {
        System.out.println("study......");
    }
    public void sleep() {
        System.out.println("sleep......");
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.name = "李榜怀";
        person.age = 20;
        person.school = "工大";
        person.eat();
        person.study();
        person.sleep();
        Person x = new Person();
        x.name = "董天炜";
        x.age = 30;
        x.school = "工大";
        x.eat();
        x.study();
        x.sleep();
    }
}
